import java.util.Scanner;

public class homework26 {
    public static void main(String[] args) {
        int a[] = {1,9,3,7,4,2,5,0,6,8};
        int t = 0;
        for (int i = 0; i < a.length; i++){
            for (int j = i+1; j<a.length; j++)
                if (a[i] > a[j]){ //对比大小判断数字位置
                    t = a[i];
                    a[i] = a[j];
                    a[j] = t;
                }

        }
        System.out.print("a[]=" + "{");
        for (int i = 0; i < a.length; i++){// 输出
            System.out.print(a[i] + " " );
        }
        System.out.print("}");
    }
}